package org.appfuse.dao.hibernate;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.appfuse.dao.Zb910DAO;
import org.appfuse.model.Zb910;
import org.appfuse.model.Zb910Id;

/**
 * Data access object (DAO) for domain model class Zb910.
 * 
 * @see org.appfuse.dao.Zb910
 * @author MyEclipse Persistence Tools
 */

public class Zb910DAOHibernate  extends BaseDaoHibernate implements
Zb910DAO{
	private static final Log log = LogFactory.getLog(Zb910DAOHibernate.class);

	// property constants
	public static final String DM_GRP = "dmGrp";

	public static final String DM_CPT = "dmCpt";

	public static final String DM_LEV_COD = "dmLevCod";

	public static final String DM_ABR1 = "dmAbr1";

	public static final String DM_ABR2 = "dmAbr2";

	public static final String INP_ABR = "inpAbr";

	public static final String DM_HND = "dmHnd";

	public static final String INP_FRQ = "inpFrq";

	public static final String YES_PRV = "yesPrv";

	public static final String ATTRIBUTE = "attribute";

	public void save(Zb910 transientInstance) {
		log.debug("saving Zb910 instance");
		try {
			getSession().save(transientInstance);
			log.debug("save successful");
		} catch (RuntimeException re) {
			log.error("save failed", re);
			throw re;
		}
	}

	public void delete(Zb910 persistentInstance) {
		log.debug("deleting Zb910 instance");
		try {
			getSession().delete(persistentInstance);
			log.debug("delete successful");
		} catch (RuntimeException re) {
			log.error("delete failed", re);
			throw re;
		}
	}

	public Zb910 findById(Zb910Id id) {
		log.debug("getting Zb910 instance with id: " + id);
		try {
			Zb910 instance = (Zb910) getSession().get("org.appfuse.model.Zb910",
					id);
			return instance;
		} catch (RuntimeException re) {
			log.error("get failed", re);
			throw re;
		}
	}
}